package com.bit.demo;

import bit.Wang;

public class whw {
    public static void main(String[] args) {
        Wang wang = new Wang();
        //wang.name = "lisi";  //当成员变量属性为private时，此时程序报错
       /* wang.setName("lisi");
        System.out.println(wang.getName());*/    //封装，间接访问成员变量
    }
    public static void main1(String[] args) {
        Test test = new Test();
        test.brand = "华为";
    }
}
